function Data2Assistant(argFromPusher) {
}

Data2Assistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	},
	button1Tap: function(inSender, event) {
		console.log("neutered = " + this.$.neutered.getValue());
	  console.log("live locaiton = " + this.$.liveLocation.getValue());
	  console.log("feed info = " + this.$.feedInfo.getValue());
	  console.log("cat name = " + this.$.catName.getValue());
	  this.$.submitService.setParametersString(
	  	"{"
		  +"\"geometry\" : {\"type\":\"Point\", \"coordinates\":[50.0,50.0]} "
			  +",\"cat\":{"
			  	+"\"byOwner\":\"yes\""
			    +",\"name\":\""+this.$.catName.getValue()+"\""
			    +",\"neutered\":\""+this.$.neutered.getValue()+"\""
			    +",\"liveLocation\":\""+this.$.liveLocation.getValue()+"\""
			    +",\"feedLocation\":\""+this.$.feedInfo.getValue()+"\""
			  +"}"
		  +"}"
		  );
	  this.$.submitService.execute();
		this.controller.stageController.pushScene('thankyou');		
	},
	submitServiceSuccess: function(inSender, inResponse, inRequest) {
		console.log("submission succeded " + inSender + " " + inResponse + " " + inRequest);
		console.log("result = " + Object.toJSON(inResponse));
	},
	submitServiceFailure: function(inSender, inError) {
		console.log("submission failed " + inSender + " " + Object.toJSON(inError));
	}
};